import 'package:flutter/material.dart';

import '../common/styles.dart';

class DefaultTextButton extends StatelessWidget {
  const DefaultTextButton({super.key, required this.text, this.function});

  final Function()? function;
  final String text;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: function,
      child: Container(
        width: 200,
        height: 50,
        alignment: Alignment.center,
        decoration: BoxDecoration(
            color: Styles.backgroundColor,
            borderRadius: const BorderRadius.all(Radius.circular(20)),
            boxShadow: const [
              BoxShadow(color: Styles.shadowColor, blurRadius: 10)
            ],
            border: Border.all(color: Styles.mainThemeColor)),
        child: Text(
          text,
          style: Styles.textThemeMedium(15),
        ),
      ),
    );
  }
}
